<?php
/**
 * True Gallery Category template file
 *
 * @version 2.5
 * @author Alexey N. Brin (userxp@joomlaportal.ru)
 * @homepage http://truegallery.ru 
 * @filename category.tpl.php
 * @package True Gallery
 * @copyright (C) 2008-2009 by joomlatune.ru
 * @license GNU/GPL: http://www.gnu.org/copyleft/gpl.html
 * 
 * THIS GALLERY is an EVOLUTION of AkoGallery -> PonyGallery -> DatsoGallery
 *
 * If you fork this to create your own project, 
 * please make a reference to True Gallery someplace in your code 
 * and provide a link to http://www.joomlatune.ru
 *
 **/

defined('_VALID_MOS') or defined('_JEXEC') or die('Direct Access to this location is not allowed.');

//extract( JTuneConfig::getParameters() );

$tpl_script		= '';
$tpls_css		= '';
if( !isset( $pred ) ) {
	$pred = -1;
}
$fade = 'dark';
if( ($pred % 4 )==0 || ($pred % 4) == 1 ) $fade = 'light';
$pred++;
?>
<div class="true_picture <?php echo $fade; ?>">
	<div class="picture_thumb count<?php echo $tpl->item ?>" >
		<a href="<?php echo $tpl->catlink; ?>" rel="lightbox-tour" title="<?php echo $tpl->title; ?>">
			<img src="<?php echo $tpl->imgsrc; ?>" alt="<?php echo $tpl->title; ?>" />
		</a>
	</div>
	<div class="picture_title">
		<h1><a href="<?php echo $tpl->catlink; ?>"><?php echo $tpl->name; ?></a></h1>
	</div>
	<div class="picture_desc">
		<?php echo JText::_('TG_AUTHOR').': '.$tpl->author; ?><br />
		<?php echo JText::_('TG_DATE_ADD').': '.$tpl->publishupdate; ?><br />
		<?php echo JText::_('TG_SIZE').': '.$tpl->imagesize[0].' x '.$tpl->imagesize[1]; ?><br />
		<?php echo JText::_('TG_DESCRIPTION').': '.$tpl->description; ?><br />
	</div>
</div>